From ee6d7bb5a4cc9376ecf800973667e0c991418209 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 5 Feb 2004 22:46:22 +0000 Subject: [PATCH] Add this function, to make mnemonic_activate work for combo boxes. Thu Feb 5 23:48:19 2004 Matthias Clasen * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this function, to make mnemonic_activate work for combo boxes. (#133443, Paolo Borelli) --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gtk/gtkcombobox.c | 11 +++++------ 6 files changed, 35 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 37d6ae2d6b..d2cc5e172e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Feb 5 23:48:19 2004 Matthias Clasen + + * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this + function, to make mnemonic_activate work for combo boxes. + (#133443, Paolo Borelli) + Thu Feb 5 22:05:52 2004 Matthias Clasen * gtk/gtkfilesystemunix.c (bookmark_list_read): Initialize result diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 37d6ae2d6b..d2cc5e172e 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Thu Feb 5 23:48:19 2004 Matthias Clasen + + * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this + function, to make mnemonic_activate work for combo boxes. + (#133443, Paolo Borelli) + Thu Feb 5 22:05:52 2004 Matthias Clasen * gtk/gtkfilesystemunix.c (bookmark_list_read): Initialize result diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 37d6ae2d6b..d2cc5e172e 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +Thu Feb 5 23:48:19 2004 Matthias Clasen + + * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this + function, to make mnemonic_activate work for combo boxes. + (#133443, Paolo Borelli) + Thu Feb 5 22:05:52 2004 Matthias Clasen * gtk/gtkfilesystemunix.c (bookmark_list_read): Initialize result diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 37d6ae2d6b..d2cc5e172e 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Thu Feb 5 23:48:19 2004 Matthias Clasen + + * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this + function, to make mnemonic_activate work for combo boxes. + (#133443, Paolo Borelli) + Thu Feb 5 22:05:52 2004 Matthias Clasen * gtk/gtkfilesystemunix.c (bookmark_list_read): Initialize result diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 37d6ae2d6b..d2cc5e172e 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Thu Feb 5 23:48:19 2004 Matthias Clasen + + * gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this + function, to make mnemonic_activate work for combo boxes. + (#133443, Paolo Borelli) + Thu Feb 5 22:05:52 2004 Matthias Clasen * gtk/gtkfilesystemunix.c (bookmark_list_read): Initialize result diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c index eef5ea6f83..f52a441689 100644 --- a/gtk/gtkcombobox.c +++ b/gtk/gtkcombobox.c @@ -255,10 +255,8 @@ static void gtk_combo_box_cell_layout_clear_attributes (GtkCellLayout static void gtk_combo_box_cell_layout_reorder (GtkCellLayout *layout, GtkCellRenderer *cell, gint position); -#if 1 static gboolean gtk_combo_box_mnemonic_activate (GtkWidget *widget, gboolean group_cycling); -#endif GType @@ -2830,13 +2828,14 @@ gtk_combo_box_remove_text (GtkComboBox *combo_box, } -#if 1 static gboolean gtk_combo_box_mnemonic_activate (GtkWidget *widget, gboolean group_cycling) { - g_print ("I'm here!\n"); - gtk_widget_grab_focus (GTK_COMBO_BOX (widget)->priv->tree_view); + GtkComboBox *combo_box = GTK_COMBO_BOX (widget); + + gtk_widget_grab_focus (combo_box->priv->tree_view); + return TRUE; } -#endif + -- 2.30.2